Las Reliquias de Tolti Aph

An interactive fiction by Graham Nelson (2005) - the Inform 7 source text

Home page

Contents
Previous
Next

Complete text
Section E(j) - El hechizo Forzar Laberinto

[ A todos los jugadores se les da este hechizo como un tipo de carta de Salir de la Carcel, pero no tiende a ser tan buena como ellos la imaginan. Fuerza una de las conexiones del mapa para que funcione entre un par de cuevas adjacentes, y puede ser usada si uno se queda atrapado por uno de los peligros de Terremoto (carta de).]

Instead of casting forzar laberinto at when Terra Incognita is closed, say "Los niños perdidos vuelven a reir."

Before casting forzar laberinto at:
    if the location is not a labyrinth room, say "Ese hechizo solo tiene eficacia en el Laberinto de las Bestias Reales." instead.[1]

To force a path (way - direction) from (place - room):
    let the current position be the grid position of the location;
    let the new position be the vector sum of the current position and the vector of the way;
    if the new position is <0,0,0>, stop;
    let the new room be the room at the new position;
    if the new room is Solid Rock
    begin;
        if a labyrinth room is acceptable
        begin;
            let the new room be a random acceptable labyrinth room;
            let the current position be the grid position of the location;
            position the new room at the new position;
        otherwise;
            stop;
        end if;
    end if;
    now the new room is Earthquake-undamaged;
    change the way exit of the location to the new room;
    let the reverse way be the opposite of the way;
    change the reverse way exit of the new room to the location.

Effect of casting forzar laberinto at:
    record outcome "todo alrededor se llena de niebla, dejando tu mente momentáneamente confusa";
    if the room north from the location is Solid Rock, force a path north from the location;
    if the room east from the location is Solid Rock, force a path east from the location;
    if the room south from the location is Solid Rock, force a path south from the location;
    if the room west from the location is Solid Rock, force a path west from the location;
    continue the action.


Note

[1]. Esta es una regla before (antes), poco convencional, para evitar que los jugadores malgasten FUE preciosa tratando de averiguar para qué es el hechizo.